/*
 * Copyright (c) 2010-2013 Ruben Chakhmakhchyan. All rights reserved.
 * 
 * This file contains Original Code and/or Modifications of Original Code
 * as defined in and that are subject to the Eclipse Public License
 * Version 1.0 (the 'License'). You may not use this file except in
 * compliance with the License. Please obtain a copy of the License at
 * http://opensource.org/licenses/EPL-1.0 and read it before using this file.
 */

#include "image_acquisition_model.h"
#include <string.h>


ImagingDevice::ImagingDevice( const DeviceInfo* deviceInfo )
    : m_eventHandler( NULL ),
    m_tag( NULL )
{
    ::memcpy( &m_deviceInfo, deviceInfo, sizeof( DeviceInfo ) );
}

void ImagingDevice::setEventHandler( DisposeEventHandler* eventHandler )
{
    m_eventHandler = eventHandler;
}

ImagingDevice::~ImagingDevice()
{
    if ( m_eventHandler )
        m_eventHandler->disposed();
}

const DeviceInfo& ImagingDevice::getDeviceInfo() const
{
    return m_deviceInfo;
}

void* ImagingDevice::getTag() const
{
    return m_tag;
}

void ImagingDevice::setTag( void* value )
{
    m_tag = value;
}
